<?php
	//error reporting
	ini_set('error_reporting', E_ALL);
	ini_set('display_errors', 1);
	
	//-----------------------------------------------------	
	session_start();
	$logged = false;
	if(!empty($_SESSION["loggedUser"])){
		$loggedUser_array = unserialize($_SESSION["loggedUser"]);
		if(!empty($loggedUser_array)){
			$logged = true;
		}
	}
	
	if(!$logged) header("location: login.php");
	//-----------------------------------------------------
?>